<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /></head>
<body>
 <form name="pay" class='layui-form' method="post" action="/member/pay/" target="_blank">  
<div class="ch_pay" style='margin:0;padding:0 10px 10px 10px;'>
  <ul class="pu1">
  <li class="l1"><input name='balance' type='checkbox' checked value='{$user.money}'><span>账号可用余额 <strong>{$user.money}</strong> 元</span></li>
  <li class="l2">支付 <strong>{$user.money}</strong> 元</li>
  </ul>
   
 <div class="third-party" >
  <ul class="pu1">
  <li class="l1">请在下方选择其他支付方式</li>
  <li class="l2">支付 <strong class='third-party-money'>{$data.money1-$user.money}</strong> 元</li>
  </ul>
 
<div class="pay-groups-tabs">
		<li>
		<label class='cur' data-pay='three'>第三方支付</label>
					<label for='g' data-pay='individual'>个人网银支付</label>
			<label for='q' data-pay='company'>企业网银支付</label>
		
		</li>
	</div>

	<div class="pay-channel-list dspay" data-box="three">
					<span class="cur" data-gate='alipay'><i class="BANK-ICO ICON-ALIPAY"></i><em></em></span>
		
		
		
		
	</div>
					<div class="pay-channel-list" data-box="individual" style="display:none">
			<span data-gate="工商银行"><i class="BANK-ICO ICON-ICBC"></i><em></em>工商银行</span><span data-gate="农业银行"><i class="BANK-ICO ICON-ABC"></i><em></em>农业银行</span><span data-gate="中国银行"><i class="BANK-ICO ICON-BOC"></i><em></em>中国银行</span><span data-gate="建设银行"><i class="BANK-ICO ICON-CCB"></i><em></em>建设银行</span><span data-gate="交通银行"><i class="BANK-ICO ICON-COMM"></i><em></em>交通银行</span><span data-gate="邮政银行"><i class="BANK-ICO ICON-PSBC"></i><em></em>邮政银行</span><span data-gate="中信银行"><i class="BANK-ICO ICON-CITIC"></i><em></em>中信银行</span><span data-gate="光大银行"><i class="BANK-ICO ICON-CEB"></i><em></em>光大银行</span><span data-gate="民生银行"><i class="BANK-ICO ICON-CMBC"></i><em></em>民生银行</span><span data-gate="广发银行"><i class="BANK-ICO ICON-GDB"></i><em></em>广发银行</span><span data-gate="招商银行"><i class="BANK-ICO ICON-CMB"></i><em></em>招商银行</span><span data-gate="兴业银行"><i class="BANK-ICO ICON-CIB"></i><em></em>兴业银行</span><span data-gate="浦发银行"><i class="BANK-ICO ICON-SPDB"></i><em></em>浦发银行</span><span data-gate="上海银行"><i class="BANK-ICO ICON-SHBANK"></i><em></em>上海银行</span><span data-gate="平安银行"><i class="BANK-ICO ICON-SPABANK"></i><em></em>平安银行</span><span data-gate="华夏银行"><i class="BANK-ICO ICON-HXBANK"></i><em></em>华夏银行</span><span data-gate="北京银行"><i class="BANK-ICO ICON-BJBANK"></i><em></em>北京银行</span><span data-gate="南京银行"><i class="BANK-ICO ICON-NJCB"></i><em></em>南京银行</span><span data-gate="杭州银行"><i class="BANK-ICO ICON-HZBANK"></i><em></em>杭州银行</span><span data-gate="浙商银行"><i class="BANK-ICO ICON-CZBANK"></i><em></em>浙商银行</span><span data-gate="渤海银行"><i class="BANK-ICO ICON-CBHB"></i><em></em>渤海银行</span><span data-gate="上海农商行"><i class="BANK-ICO ICON-SRCB"></i><em></em>上海农商行</span><span data-gate="北京农商行"><i class="BANK-ICO ICON-BJRCB"></i><em></em>北京农商行</span>		</div>
				<div class="pay-channel-list" data-box="company" style="display:none">
			<span data-gate="工商银行"><i class="BANK-ICO ICON-ICBC"></i><em></em>工商银行</span><span data-gate="农业银行"><i class="BANK-ICO ICON-ABC"></i><em></em>农业银行</span><span data-gate="中国银行"><i class="BANK-ICO ICON-BOC"></i><em></em>中国银行</span><span data-gate="建设银行"><i class="BANK-ICO ICON-CCB"></i><em></em>建设银行</span><span data-gate="交通银行"><i class="BANK-ICO ICON-COMM"></i><em></em>交通银行</span><span data-gate="中信银行"><i class="BANK-ICO ICON-CITIC"></i><em></em>中信银行</span><span data-gate="光大银行"><i class="BANK-ICO ICON-CEB"></i><em></em>光大银行</span><span data-gate="广发银行"><i class="BANK-ICO ICON-GDB"></i><em></em>广发银行</span><span data-gate="招商银行"><i class="BANK-ICO ICON-CMB"></i><em></em>招商银行</span><span data-gate="兴业银行"><i class="BANK-ICO ICON-CIB"></i><em></em>兴业银行</span><span data-gate="浦发银行"><i class="BANK-ICO ICON-SPDB"></i><em></em>浦发银行</span><span data-gate="北京银行"><i class="BANK-ICO ICON-BJBANK"></i><em></em>北京银行</span><span data-gate="平安银行"><i class="BANK-ICO ICON-SPABANK"></i><em></em>平安银行</span><span data-gate="邮储银行	"><i class="BANK-ICO ICON-PSBC"></i><em></em>邮储银行	</span><span data-gate="民生银行	"><i class="BANK-ICO ICON-CMBC"></i><em></em>民生银行	</span><span data-gate="上海银行	"><i class="BANK-ICO ICON-SHBANK"></i><em></em>上海银行	</span><span data-gate="贵州银行	"><i class="BANK-ICO ICON-BGZCHINA"></i><em></em>贵州银行	</span><span data-gate="华夏银行	"><i class="BANK-ICO ICON-HXBANK"></i><em></em>华夏银行	</span><span data-gate="杭州银行	"><i class="BANK-ICO ICON-HZBANK"></i><em></em>杭州银行	</span><span data-gate="青岛银行	"><i class="BANK-ICO ICON-QDCCB"></i><em></em>青岛银行	</span><span data-gate="宁波银行	"><i class="BANK-ICO ICON-NBCB"></i><em></em>宁波银行	</span><span data-gate="天津银行	"><i class="BANK-ICO ICON-TJCB"></i><em></em>天津银行	</span><span data-gate="上海农商行"><i class="BANK-ICO ICON-SRCB"></i><em></em>上海农商行</span>		</div>
			</div> 
  <ul class="safe">
  <li class="l1">安全检测：请输入您的安全码</li>
  <li class="l2"><input name="safe" class="layui-input" value="" lay-verify="safe" type="password" placeholder="请输入安全码" style="border:#56aa16 solid 1px;"></li>
  </ul>
 <div class="layui-form-item" style="padding-top:10px;">
    <div class="layui-input-inline"><input type="submit" class="layui-btn layui-btn-danger" style='width:120px;font-size:14px;line-height:35px;height:35px;' lay-submit="" value="确认支付"></div><div class="layui-input-inline" style='float: right;text-align:right'><a style="line-height:35px;color:#999;font-size:12px;" onclick="parent.layer.iframeSrc(index,'/bond/payments');">重选额度</a>
	</div>
</div>
</div>
<input type="hidden" value="three" name="bank" />
<input type="hidden" value="alipay" name="gate" />
<input type="hidden" value="{$data.bh}" name="bh" />
<input type="hidden" value="bond" name="action" />
<input type="hidden" value="{:passkey()}" name="passkey" />
</form>
<script language="javascript">
var index = parent.layer.getFrameIndex(window.name);
parent.layer.title('保证金缴纳（<font color=red>{$data.money1} </font>元） - 支付页面', index);
 layui.use('form', function(){
  var form = layui.form();
	 form.verify({
		safe: function(value){
		  if(!/(?=^.*?\d)(?=^.*?[a-zA-Z])^[0-9a-zA-Z_~!@#$%^&^&$]{6,20}$/.test(value)) return "安全码不少于6位，且同时包含数字+字母";
				var message = '';
				$.ajax({
					async: false,
					url: '/aform/index/safe',
					data:{str: value},
					dataType: 'json',
					type: 'POST',
					success: function(result) {
						if(!result.state) message = result.info;
					},error: function(){
						message =  '网络异常，请重试！';
					}
				});
				if (message !== '') 
					return message;
	  　}
	});
	form.on('checkbox', function(data){
		var total=parseFloat({$data.money1}),uul=$(data.elem).closest("ul");
		if(data.elem.checked){
		uul.removeClass("uncheck");
		$(".safe").show();
		(total<=data.elem.value)?$(".third-party").hide():($(".third-party").show())+($(".third-party-money").html(toDecimal2(total-data.elem.value)));
		}else{
		uul.addClass("uncheck");
		$(".safe").hide();
		$(".third-party").show();
		$(".third-party-money").html(toDecimal2(total));
		}
		parent.layer.iframeAuto(index);
	});

	form.on('submit', function(data) {
		parent.Resulting('bond');
		return true;
	});

	$(".pu1 span").click(function(){
		$(this).prev("div").click();
	});
	parent.layer.iframeAuto(index);
 });
</script>
</body>
</html>